home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000073_fdc@columbia.edu_Tue Nov 12 13:19:43 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  42 lines

  1. Article: 13839 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: telnet and pseudo-terminals
  6. Date: 12 Nov 2002 13:19:25 -0500
  7. Organization: Columbia University
  8. Lines: 25
  9. Message-ID: <aqrgnd$l1u$1@watsol.cc.columbia.edu>
  10. References: <e81154be.0211120928.281cafa6@posting.google.com>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1037125166 5600 128.59.39.139 (12 Nov 2002 18:19:26 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 12 Nov 2002 18:19:26 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13839
  16.  
  17. In article <e81154be.0211120928.281cafa6@posting.google.com>,
  18. Ysidro Salinas <ysidros@advmail.com> wrote:
  19. : Is it possible to use C-Kermit to provide "serial-like" input/output
  20. : through a telnet connection to another communication program?  If so,
  21. : how?  I've read about the pipe and pty features, the redirect feature,
  22. : and I've also scowered the "Using C-Kermit" book, but I'm not quite
  23. : sure if any of these do what I want.  I have an existing comm program
  24. : that screen-scraps a remote system via a serial port, I'd like to
  25. : extend it to do exactly the same over a telnet connection, but I'd
  26. : really like to avoid writing code to perform the telnet protocol.  Can
  27. : I use kermit to establish the telnet connection, feed input and output
  28. : to my program, and handle all the telnet communication at the same
  29. : time?
  30. :
  31. You could try the REDIRECT command:
  32.  
  33.   set host foo.bar.baz
  34.   if fail ...
  35.   redirect <name-and-args-of-your-screen-scraping-program>
  36.  
  37. If your communications program uses stdio for the user end, it should
  38. work.  If not, you could always rewrite the whole thing as a Kermit
  39. script, thus making it both transport- and platform-independent.
  40.  
  41. - Frank
  42.